'use strict';
import * as Types from '../ActionTypes/action.types';
let init_state={status:'init',data:{
    content:[],lefts:[]
}};
export default function countTime(state = init_state, action){
   switch(action.type){
       case Types.COUNT_DOWN.TIME_END_REQUEST:
        return Object.assign(...state, {
            status:'end',
            data:action.data
        });
        case Types.COUNT_DOWN.UPDATE_DATA:
        return Object.assign(...state, {
            status:'update',
            data:action.data
        });
       default:
        return state;
   }
} 